package com.woniu.guoguo.service.impl;

import com.woniu.guoguo.model.Invite;
import com.woniu.guoguo.dao.InviteMapper;
import com.woniu.guoguo.service.IInviteService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Richie
 * @since 2020-11-08
 */
@Service
public class InviteServiceImpl extends ServiceImpl<InviteMapper, Invite> implements IInviteService {
    @Autowired
    private InviteMapper inviteMapper;
    @Override
    public void addinvition(Invite invite) {
        inviteMapper.addinvition(invite);
    }

    @Override
    public List<Invite> queryinvite(int userId) {
        List<Invite> queryinvite = inviteMapper.queryinvite(userId);
        return queryinvite;
    }
}
